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

@@ -44,6 +44,10 @@ func (s *MySuite) TestFSAPISuite(c *C) {
func (s *MySuite) TestXLAPISuite(c *C) {
var storageList []string
// Initialize name space lock.
initNSLock()
create := func() objectAPI {
var nDisks = 16 // Maximum disks.
var erasureDisks []string