[sheepdog] [PATCH] remove the duplicate `if` statement
Xiaolong Xu
nxtxiaolong at gmail.com
Thu Dec 18 13:46:41 CET 2014
---
sheep/gateway.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sheep/gateway.c b/sheep/gateway.c
index 408660a..d238f96 100644
--- a/sheep/gateway.c
+++ b/sheep/gateway.c
@@ -681,10 +681,9 @@ int gateway_write_obj(struct request *req)
if (!bypass_object_cache(req))
return object_cache_handle_request(req);
- if (is_data_vid_update(hdr))
- invalidate_other_nodes(oid_to_vid(oid));
if (is_data_vid_update(hdr)) {
+ invalidate_other_nodes(oid_to_vid(oid));
size_t nr_vids = hdr->data_length / sizeof(*vids);
/* read the previous vids to discard their references later */
--
1.9.3 (Apple Git-50)
More information about the sheepdog
mailing list