[sheepdog] [PATCH v2] sheep/http/kv.c fix typos

Bingpeng Zhu nkuzbp at foxmail.com
Tue Aug 5 10:05:14 CEST 2014


From: NankaiZBP <nkuzbp at foxmail.com>

fix the typos in code.

Signed-off-by: Bingpeng Zhu <bingpeng.zbp at alibaba-inc.com>
---
 sheep/http/kv.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sheep/http/kv.c b/sheep/http/kv.c
index 6805f12..244144a 100644
--- a/sheep/http/kv.c
+++ b/sheep/http/kv.c
@@ -564,7 +564,7 @@ int kv_update_bucket(const char *account, const char *bucket)
 	return -1;
 }
 
-/* return SD_RES_NO_VDI if bucket is not existss */
+/* return SD_RES_NO_VDI if bucket is not existing */
 int kv_delete_bucket(const char *account, const char *bucket)
 {
 	uint32_t account_vid, vid;
@@ -679,7 +679,7 @@ static int onode_allocate_extents(struct kv_onode *onode,
 	int ret = SD_RES_SUCCESS;
 	uint32_t data_vid = onode->data_vid, idx = onode->nr_extent;
 
-	/* if the previous o_extent[] has some extra sapce, use it */
+	/* if the previous o_extent[] has some extra space, use it */
 	if (idx) {
 		reserv_len = onode->o_extent[idx - 1].count * SD_DATA_OBJ_SIZE -
 			     onode->o_extent[idx - 1].data_len;
@@ -1527,7 +1527,7 @@ int kv_delete_object(const char *account, const char *bucket, const char *name,
 
 	ret = onode_delete(onode);
 	if (ret != SD_RES_SUCCESS) {
-		sd_err("failed to delete bnode for %s", name);
+		sd_err("failed to delete onode for %s", name);
 		goto out;
 	}
 	ret = bnode_update(account, bucket, onode->size, false);
-- 
1.7.1




More information about the sheepdog mailing list