summaryrefslogtreecommitdiff
path: root/src/cls_rbd.cc
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2010-06-10 11:52:05 -0700
committerYehuda Sadeh <yehuda@hq.newdream.net>2010-06-10 14:45:40 -0700
commitf34c5b9197eec2924175fe7cebf3a34552010f6b (patch)
treea745b53550ca6739077cd99baf78a74e70ad3dd2 /src/cls_rbd.cc
parent912e3c852465b93401cc3374ab987c93db5b3472 (diff)
downloadceph-f34c5b9197eec2924175fe7cebf3a34552010f6b.tar.gz
cls_rbd: fix snapshots seq number
Diffstat (limited to 'src/cls_rbd.cc')
-rw-r--r--src/cls_rbd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cls_rbd.cc b/src/cls_rbd.cc
index edb07f45269..2b1d91055bb 100644
--- a/src/cls_rbd.cc
+++ b/src/cls_rbd.cc
@@ -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;