|
@@ -2566,6 +2566,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
|
|
byte[][] pathComponents = FSDirectory.getPathComponentsForReservedPath(src);
|
|
|
boolean create = flag.contains(CreateFlag.CREATE);
|
|
|
boolean overwrite = flag.contains(CreateFlag.OVERWRITE);
|
|
|
+ boolean isLazyPersist = flag.contains(CreateFlag.LAZY_PERSIST);
|
|
|
|
|
|
waitForLoadingFSImage();
|
|
|
|
|
@@ -2628,7 +2629,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
|
|
src = resolvePath(src, pathComponents);
|
|
|
toRemoveBlocks = startFileInternal(pc, src, permissions, holder,
|
|
|
clientMachine, create, overwrite, createParent, replication,
|
|
|
- blockSize, suite, protocolVersion, edek, logRetryCache);
|
|
|
+ blockSize, isLazyPersist, suite, protocolVersion, edek, logRetryCache);
|
|
|
stat = dir.getFileInfo(src, false,
|
|
|
FSDirectory.isReservedRawName(srcArg), true);
|
|
|
} catch (StandbyException se) {
|
|
@@ -2664,7 +2665,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
|
|
String src, PermissionStatus permissions, String holder,
|
|
|
String clientMachine, boolean create, boolean overwrite,
|
|
|
boolean createParent, short replication, long blockSize,
|
|
|
- CipherSuite suite, CryptoProtocolVersion version,
|
|
|
+ boolean isLazyPersist, CipherSuite suite, CryptoProtocolVersion version,
|
|
|
EncryptedKeyVersion edek, boolean logRetryEntry)
|
|
|
throws FileAlreadyExistsException, AccessControlException,
|
|
|
UnresolvedLinkException, FileNotFoundException,
|