~ubuntu-branches/ubuntu/raring/ceph/raring

« back to all changes in this revision

Viewing changes to src/os/CollectionIndex.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2012-02-05 10:07:38 UTC
  • mfrom: (1.1.7) (0.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120205100738-00s0bxx93mamy8tk
Tags: 0.41-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    int *exist             ///< [out] True if the object exists, else false
126
126
    ) = 0;
127
127
 
128
 
  /**
129
 
   * List contents of the collection
130
 
   *
131
 
   * @param [in] seq Snapid to list.
132
 
   * @param [in] max_count Max number to list (0 for no limit).
133
 
   * @param [out] ls Container for listed objects.
134
 
   * @param [in,out] last List handle.  0 for beginning.  Passing the same
135
 
   * cookie location will cause the next max_count to be listed.
136
 
   * @return Error code.  0 on success.
137
 
   */
 
128
  /// List contents of collection by hash
138
129
  virtual int collection_list_partial(
139
 
    snapid_t seq,
140
 
    int max_count,
141
 
    vector<hobject_t> *ls, 
142
 
    collection_list_handle_t *last
 
130
    const hobject_t &start, ///< [in] object at which to start
 
131
    int min_count,          ///< [in] get at least min_count objects
 
132
    int max_count,          ///< [in] return at most max_count objects
 
133
    snapid_t seq,           ///< [in] list only objects with snap >= seq
 
134
    vector<hobject_t> *ls,  ///< [out] Listed objects
 
135
    hobject_t *next         ///< [out] Next object to list
143
136
    ) = 0;
144
137
 
145
138
  /// List contents of collection.