this makes it easier to update constructors when adding/removing fields
Signed-off-by: Casey Bodley <cbodley@redhat.com>
list<Context *> on_applied_sync;
public:
+ Transaction() :
+ osr(NULL),
+ use_tbl(false),
+ coll_id(0),
+ object_id(0) { }
+
+ Transaction(bufferlist::iterator &dp) :
+ osr(NULL),
+ use_tbl(false),
+ coll_id(0),
+ object_id(0) {
+ decode(dp);
+ }
+
+ Transaction(bufferlist &nbl) :
+ osr(NULL),
+ use_tbl(false),
+ coll_id(0),
+ object_id(0) {
+ bufferlist::iterator dp = nbl.begin();
+ decode(dp);
+ }
/* Operations on callback contexts */
void register_on_applied(Context *c) {
data.ops++;
}
- // etc.
- Transaction() :
- osr(NULL),
- use_tbl(false),
- coll_id(0),
- object_id(0) { }
-
- Transaction(bufferlist::iterator &dp) :
- osr(NULL),
- use_tbl(false),
- coll_id(0),
- object_id(0) {
- decode(dp);
- }
-
- Transaction(bufferlist &nbl) :
- osr(NULL),
- use_tbl(false),
- coll_id(0),
- object_id(0) {
- bufferlist::iterator dp = nbl.begin();
- decode(dp);
- }
-
void encode(bufferlist& bl) const {
if (use_tbl) {
uint64_t ops = data.ops;