Project

General

Profile

Feature #2727

filestore: add split

Added by Samuel Just about 11 years ago. Updated almost 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

Duplicated by Ceph - Feature #1514: filestore: api to repartition a collection Duplicate 09/07/2011

History

#1 Updated by Samuel Just about 11 years ago

On second thought, that would be hard to encode into a transaction, it'll probably just take a

[(hash_prefix, bits, coll_t)]

to define the movements.

#2 Updated by Sage Weil about 11 years ago

  • translation missing: en.field_position set to 131

#3 Updated by Sage Weil about 11 years ago

  • translation missing: en.field_position deleted (131)
  • translation missing: en.field_position set to 130

#4 Updated by Sage Weil about 11 years ago

  • translation missing: en.field_position deleted (139)
  • translation missing: en.field_position set to 9

#5 Updated by Anonymous about 11 years ago

  • Priority changed from Normal to High
  • Tags set to CY2012

#6 Updated by Sage Weil about 11 years ago

  • translation missing: en.field_story_points set to 5
  • translation missing: en.field_position deleted (47)
  • translation missing: en.field_position set to 46

#7 Updated by Sage Weil about 11 years ago

  • Target version set to v0.53c
  • translation missing: en.field_position deleted (54)
  • translation missing: en.field_position set to 3

#8 Updated by Sage Weil about 11 years ago

  • Target version changed from v0.53c to v0.54a
  • translation missing: en.field_position deleted (19)
  • translation missing: en.field_position set to 1406

#9 Updated by Sage Weil about 11 years ago

  • Target version changed from v0.54a to v0.54b
  • translation missing: en.field_position deleted (1411)
  • translation missing: en.field_position set to 1

#10 Updated by Sage Weil almost 11 years ago

  • Target version changed from v0.54b to v0.55a
  • translation missing: en.field_position deleted (13)
  • translation missing: en.field_position set to 5

#11 Updated by Sage Weil almost 11 years ago

  • Target version deleted (v0.55a)
  • translation missing: en.field_position deleted (5)
  • translation missing: en.field_position set to 1

#12 Updated by Dan Mick almost 11 years ago

  • translation missing: en.field_position deleted (16)
  • translation missing: en.field_position set to 12

#13 Updated by Sage Weil almost 11 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF