mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Merge pull request #2897 from ceph/wip-da-revert-10b68b
Revert "osd: detect (some) misordered ondisk tmaps" Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
commit
8e6fe680e6
@ -3019,18 +3019,10 @@ int ReplicatedPG::do_tmapup(OpContext *ctx, bufferlist::iterator& bp, OSDOp& osd
|
||||
string nextkey, last_in_key;
|
||||
bufferlist nextval;
|
||||
bool have_next = false;
|
||||
string last_disk_key;
|
||||
if (!ip.end()) {
|
||||
have_next = true;
|
||||
::decode(nextkey, ip);
|
||||
::decode(nextval, ip);
|
||||
if (nextkey < last_disk_key) {
|
||||
dout(5) << "tmapup warning: key '" << nextkey << "' < previous key '" << last_disk_key
|
||||
<< "', falling back to an inefficient (unsorted) update" << dendl;
|
||||
bp = orig_bp;
|
||||
return do_tmapup_slow(ctx, bp, osd_op, newop.outdata);
|
||||
}
|
||||
last_disk_key = nextkey;
|
||||
}
|
||||
result = 0;
|
||||
while (!bp.end() && !result) {
|
||||
|
Loading…
Reference in New Issue
Block a user