Browse Source

HCFS: adjust file modification time to milliseconds

pull/781/head
Chris Lu 6 years ago
parent
commit
060ce1d9a2
  1. 2
      other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java

2
other/java/hdfs/src/main/java/seaweed/hdfs/SeaweedFileSystemStore.java

@ -133,7 +133,7 @@ public class SeaweedFileSystemStore {
boolean isDir = entry.getIsDirectory();
int block_replication = 1;
int blocksize = 512;
long modification_time = attributes.getMtime();
long modification_time = attributes.getMtime() * 1000; // milliseconds
long access_time = 0;
FsPermission permission = FsPermission.createImmutable((short) attributes.getFileMode());
String owner = attributes.getUserName();

Loading…
Cancel
Save