From 6f43c6c53a4e7b898c2cc4beb5d345f27af33e7f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 10 Dec 2014 09:44:01 -0800 Subject: [PATCH] osdc/Objecter: pass correct cookie value to error Signed-off-by: Sage Weil --- src/osdc/Objecter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index fc2c67441ef13..88b7d304dbef4 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -498,7 +498,7 @@ struct C_DoWatchError : public Context { info->_queued_async(); } void finish(int r) { - info->watch_context->handle_error(info->linger_id, err); + info->watch_context->handle_error(info->get_cookie(), err); info->finished_async(); info->put(); } -- 2.39.5