[Patch 2/4] chunkd: Add tchdbsetmutex

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

 



Documentation says this is necessary for multi-threaded access.

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

---
 server/be-fs.c |    3 +++
 1 file changed, 3 insertions(+)

commit 8245bc23aa4608a666b8dda767f18ca03a110906
Author: Master <zaitcev@xxxxxxxxxxxxxxxxxx>
Date:   Fri Dec 25 22:14:37 2009 -0700

    Enable multi-threaded access.

diff --git a/server/be-fs.c b/server/be-fs.c
index 908d41e..89635f8 100644
--- a/server/be-fs.c
+++ b/server/be-fs.c
@@ -74,6 +74,9 @@ int fs_open(void)
 		goto out;
 	}
 
+	if (!tchdbsetmutex(hdb))
+		goto out_hdb;
+
 	omode = HDBOREADER | HDBONOLCK | HDBOWRITER | HDBOCREAT | HDBOTSYNC;
 	if (!tchdbopen(hdb, db_fn, omode)) {
 		applog(LOG_ERR, "failed to open master table %s", db_fn);
--
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