Project

General

Profile

Bug #2725

filestore: add split

Added by Samuel Just about 11 years ago. Updated about 11 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
OSD
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Add split functionality to filestore. The existing collection structure should be already in place.

Interface could be something like:

split(coll_t from, SplitFilter filter);

where

class SplitFilter {
/** * filter(filestore_key, bits, &coll) returns true iff * forall hobject x, y in from: (x.filestore_key & (1<<bits)) (y.filestore_key & (1<&lt;bits) filestore_key) * => x, y should move to *coll.
*/
virtual bool operator()(uint32_t filestore_key, int bits, coll_t *out_coll);
}

History

#1 Updated by Samuel Just about 11 years ago

  • Status changed from New to Duplicate

Also available in: Atom PDF