fix output when stat is successful in snapshot
authorFilippos Giannakos <philipgian@grnet.gr>
Mon, 10 Dec 2012 17:17:34 +0000 (19:17 +0200)
committerFilippos Giannakos <philipgian@grnet.gr>
Fri, 11 Jan 2013 15:48:06 +0000 (17:48 +0200)
xseg/peers/user/mt-sosd.c

index b829ccf..0538ce2 100644 (file)
@@ -644,6 +644,9 @@ int handle_snapshot(struct peerd *peer, struct peer_req *pr)
                else {
                        XSEGLOG2(&lc, I, "Stating %s completed Successfully."
                                        "No need to write.", rio->second_name);
+                       XSEGLOG2(&lc, I, "Snapshot of object %s to object %s completed",
+                                       rio->obj_name, rio->second_name);
+                       req->serviced = req->size;
                        r = 0;
                        goto out_buf;
                }