Project

General

Profile

Bug #13922

cls_rbd:misused metadata_name_from_key

Added by Xiaoxi Chen over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/01/2015
Due date:
% Done:

0%


Description

The string last_read is already prefixed with RBD_METADATA_KEY_PREFIX,
also it->first. So compare them directly.

This bug was hide because in both LevelDBWholeSpaceIteratorImpl::upper_bound
and RocksDBWholeSpaceIteratorImpl::upper_bound we already skip the pair where key=after.

Associated revisions

Revision bff706f4 (diff)
Added by Xiaoxi Chen over 3 years ago

cls/cls_rbd.cc: no need to skip key after.

We already skip the pair where key after in both LevelDBWholeSpaceIteratorImpl::upper_bound
and RocksDBWholeSpaceIteratorImpl::upper_bound.

Fixes: #13922

Signed-off-by: Xiaoxi Chen <>

History

#2 Updated by Sage Weil over 3 years ago

  • Project changed from Ceph to rbd

#3 Updated by Josh Durgin over 3 years ago

  • Status changed from New to Need Review

#4 Updated by Jason Dillaman over 3 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF