Documentation says this is necessary for multi-threaded access.

Signed-off-by: Pete Zaitcev <zait...@redhat.com>

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

commit 8245bc23aa4608a666b8dda767f18ca03a110906
Author: Master <zait...@lembas.zaitcev.lan>
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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to