<p>This can be used to recover as much data as possibly from a terminally broken database. It is currently only supported for the 'ndb' database.</p>
<p>This method is currently hidden from the API by using a macro to select salvage mode. If it should be more exposed, we can add a rpmtsSalvageDB() method.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/1042'>https://github.com/rpm-software-management/rpm/pull/1042</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>ndb: add a rpmpkgSalvage() method</li>
  <li>Add a --salvagedb option to the rpmdb tool</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-0">lib/backend/dbi.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-1">lib/backend/ndb/glue.c</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-2">lib/backend/ndb/rpmpkg.c</a>
    (157)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-3">lib/backend/ndb/rpmpkg.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-4">lib/rpmdb.c</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-5">lib/rpmdb_internal.h</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-6">lib/rpmts.c</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1042/files#diff-7">rpmdb.c</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/1042.patch'>https://github.com/rpm-software-management/rpm/pull/1042.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/1042.diff'>https://github.com/rpm-software-management/rpm/pull/1042.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1042?email_source=notifications&email_token=ADLPZU26S2TGVJJZVI2YTCTRBAMCJA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKS646Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4KVLDDG25WL5DTP3DRBAMCJANCNFSM4KPFGYYQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU3TMZNTXFHWRLPA7TDRBAMCJA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKS646Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1042?email_source=notifications\u0026email_token=ADLPZU26S2TGVJJZVI2YTCTRBAMCJA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKS646Q",
"url": "https://github.com/rpm-software-management/rpm/pull/1042?email_source=notifications\u0026email_token=ADLPZU26S2TGVJJZVI2YTCTRBAMCJA5CNFSM4KPFGYY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKS646Q",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>