[Patch 1/7] tabled: Fix error path in bucket_del

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

---
 server/bucket.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/bucket.c b/server/bucket.c
index c13ec05..b3c73de 100644
--- a/server/bucket.c
+++ b/server/bucket.c
@@ -591,7 +591,7 @@ bool bucket_del(struct client *cli, const char *user, const char *bucket)
 	rc = dbenv->txn_begin(dbenv, NULL, &txn, 0);
 	if (rc) {
 		dbenv->err(dbenv, rc, "DB_ENV->txn_begin");
-		goto err_out;
+		goto err_none;
 	}
 
 	/* search for (bucket, *) in object database, to see if
@@ -714,6 +714,7 @@ err_out:
 	rc = txn->abort(txn);
 	if (rc)
 		dbenv->err(dbenv, rc, "DB_ENV->txn_abort");
+err_none:
 	return cli_err(cli, err);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux