server: Add global namespace lock. (#1398)

Fixes #1393
This commit is contained in:
Harshavardhana
2016-04-29 01:29:09 -07:00
committed by Anand Babu (AB) Periasamy
parent 8deddb82f4
commit 984903cce1
9 changed files with 157 additions and 142 deletions

View File

@@ -81,6 +81,9 @@ func (s *MyAPISuite) SetUpSuite(c *C) {
// Initialize server config.
initConfig()
// Initialize name space lock.
initNSLock()
// Set port.
addr := ":" + strconv.Itoa(getFreePort())