]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rbd: fix snapshots seq number
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 10 Jun 2010 18:52:05 +0000 (11:52 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 10 Jun 2010 21:45:40 +0000 (14:45 -0700)
src/cls_rbd.cc

index edb07f4526995bea8d8074a8dba9ec2e68f92ad8..2b1d91055bb3dc74b8b9e4c21c6d5063dd826c03 100644 (file)
@@ -142,7 +142,7 @@ int snapshot_add(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
 
   header->snap_count = header->snap_count + 1;
   header->snap_names_len = header->snap_names_len + snap_name_len + 1;
-  header->snap_seq = header->snap_seq + 1;
+  header->snap_seq = snap_id;
 
   new_snaps[0].id = snap_id;
   new_snaps[0].image_size = header->image_size;