增加hdfs代码注释
This commit is contained in:
parent
8d242458e9
commit
8bf19a216c
@ -201,6 +201,9 @@ private static INodeDirectory createRoot(FSNamesystem namesystem) {
|
||||
private final String supergroup;
|
||||
private final INodeId inodeId;
|
||||
|
||||
/**
|
||||
* 写editlog。
|
||||
*/
|
||||
private final FSEditLog editLog;
|
||||
|
||||
private HdfsFileStatus[] reservedStatuses;
|
||||
|
@ -1233,6 +1233,7 @@ private void loadFSImage(StartupOption startOpt) throws IOException {
|
||||
writeLock();
|
||||
try {
|
||||
// We shouldn't be calling saveNamespace if we've come up in standby state.
|
||||
// 根据启动选项及其对应存储目录(${dfs.name.dir}),分析存储目录,必要的话从先前的事务恢复过来
|
||||
MetaRecoveryContext recovery = startOpt.createRecoveryContext();
|
||||
final boolean staleImage
|
||||
= fsImage.recoverTransitionRead(startOpt, this, recovery);
|
||||
|
@ -34,6 +34,7 @@
|
||||
@InterfaceStability.Unstable
|
||||
public abstract class INodeAttributeProvider {
|
||||
|
||||
// 访问控制执行者接口
|
||||
public static class AuthorizationContext {
|
||||
private String fsOwner;
|
||||
private String supergroup;
|
||||
|
Loading…
Reference in New Issue
Block a user