Skip to content

fix: remote rename files #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ void writeFields(DataOutputStream out) throws IOException {
// FSImageSerialization.writeString(path, out);
FSImageSerialization.writeLong(timestamp, out); // mtime
FSImageSerialization.writeLong(timestamp, out); // atime, unused at this
permissions.write(out);
// permissions.write(out);
AclEditLogUtil.write(aclEntries, out);
XAttrEditLogProto.Builder b = XAttrEditLogProto.newBuilder();
b.addAllXAttrs(PBHelperClient.convertXAttrProto(xAttrs));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public int getLength() {
* #clonePermissionStatus(INodeWithAdditionalFields)} and {@link
* #updatePermissionStatus(PermissionStatusFormat, long)} should not modify it.
*/
private long permission = 0L;
private long permission = -1L;

private long modificationTime = -1L;
private long accessTime = -1L;
Expand Down Expand Up @@ -390,7 +390,7 @@ void setPermission(FsPermission permission) {

@Override
public long getPermissionLong() {
if (permission == 0L) {
if (permission == -1L) {
permission = DatabaseINode.getPermission(getId());
}
return permission;
Expand Down