|
@@ -735,12 +735,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
|
|
this.dtSecretManager = createDelegationTokenSecretManager(conf);
|
|
|
this.dir = new FSDirectory(fsImage, this, conf);
|
|
|
this.snapshotManager = new SnapshotManager(dir);
|
|
|
- writeLock();
|
|
|
- try {
|
|
|
- this.cacheManager = new CacheManager(this, conf, blockManager);
|
|
|
- } finally {
|
|
|
- writeUnlock();
|
|
|
- }
|
|
|
+ this.cacheManager = new CacheManager(this, conf, blockManager);
|
|
|
this.safeMode = new SafeModeInfo(conf);
|
|
|
this.auditLoggers = initAuditLoggers(conf);
|
|
|
this.isDefaultAuditLogger = auditLoggers.size() == 1 &&
|