Project

General

Profile

Actions

Feature #2727

closed

filestore: add split

Added by Samuel Just almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
OSD
Target version:
-
% Done:

0%

Source:
Tags:
CY2012
Backport:
Reviewed:
Affected Versions:
Pull request ID:

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<<bits) filestore_key) * => x, y should move to *coll.
*/
virtual bool operator()(uint32_t filestore_key, int bits, coll_t *out_coll);
}


Related issues 1 (0 open1 closed)

Has duplicate Ceph - Feature #1514: filestore: api to repartition a collectionDuplicate09/07/2011

Actions
Actions

Also available in: Atom PDF