summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2013-02-21 23:22:59 -0800
committerJosh Durgin <josh.durgin@inktank.com>2013-02-21 23:23:02 -0800
commit15bb9ba9fbb4185708399ed6deee070d888ef6d2 (patch)
tree99313c590e633a0e4317ec6863801a858d719eab
parent94ae72546507799667197fd941633bb1fd2520c2 (diff)
downloadceph-15bb9ba9fbb4185708399ed6deee070d888ef6d2.tar.gz
objecter: initialize linger op snapid
Since they are write ops now, it must be CEPH_NOSNAP or the OSD returns EINVAL. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
-rw-r--r--src/osdc/Objecter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h
index a31cac2a03c..4105e6cc74b 100644
--- a/src/osdc/Objecter.h
+++ b/src/osdc/Objecter.h
@@ -821,7 +821,8 @@ public:
tid_t register_tid;
epoch_t map_dne_bound;
- LingerOp() : linger_id(0), flags(0), poutbl(NULL), pobjver(NULL),
+ LingerOp() : linger_id(0), snap(CEPH_NOSNAP), flags(0),
+ poutbl(NULL), pobjver(NULL),
registered(false),
on_reg_ack(NULL), on_reg_commit(NULL),
session(NULL), session_item(this),