[PATCH] replica: don't say we're "deleting" when creating a bucket

Jim Meyering jim at meyering.net
Tue Oct 19 14:14:12 UTC 2010


FYI,

>From a10711d0124f8130ea0339dbc34d0bfd06cbb815 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Tue, 19 Oct 2010 16:11:45 +0200
Subject: [PATCH] replica: don't say we're "deleting" when creating a bucket

* replica.c: Include "replica.h".
Correct a misleading debug print statement.
---
 replica.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/replica.c b/replica.c
index d7a796f..6170a83 100644
--- a/replica.c
+++ b/replica.c
@@ -37,6 +37,7 @@
 #include "setup.h"
 #include "query.h"
 #include "meta.h"
+#include "replica.h"

 /* Sizes for internal string buffers. */
 #define ADDR_SIZE	1024
@@ -379,7 +380,9 @@ replicate_namespace_action (const char *name, repl_t action, my_state *ms)
 		if (!strcmp(key,me)) {
 			continue;
 		}
-		DPRINTF("replicating delete(%s) on %s\n",name,
+		DPRINTF("replicating %s(%s) on %s\n",
+			(action == REPL_ODELETE ? "delete" : "create"),
+			name,
 			((provider_t *)value)->name);
 		item = malloc(sizeof(*item));
 		if (!item) {
--
1.7.3.1.526.g2ee4


More information about the iwhd-devel mailing list