/// <exception cref="System.IO.IOException"/> private void SaveSnapshots(FsImageProto.FileSummary.Builder summary) { FSImageFormatPBSnapshot.Saver snapshotSaver = new FSImageFormatPBSnapshot.Saver(this , summary, context, context.GetSourceNamesystem()); snapshotSaver.SerializeSnapshotSection(sectionOutputStream); snapshotSaver.SerializeSnapshotDiffSection(sectionOutputStream); snapshotSaver.SerializeINodeReferenceSection(sectionOutputStream); }
internal Saver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder summary) { this.parent = parent; this.summary = summary; this.context = parent.GetContext(); this.fsn = context.GetSourceNamesystem(); }