Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
BID-0000
Browse files Browse the repository at this point in the history
Reviewed by: [Email ids of reviewers]

Testing done: [Description of what testing was done.
               Eg: - Mongo/Cassandra Sanity test passed
                   - Manual testing to trigger particular case]
  • Loading branch information
Gaurav Khandelwal committed May 25, 2019
1 parent 1295271 commit 1b79578
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions depends/libhdfs3/src/client/FileStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ class FileStatus {
mtime = modificationTime;
}

int64_t getFileid() const {
return fileid;
}

void setFileid(int64_t fileid) {
this->fileid = fileid;
}

const char * getOwner() const {
return owner.c_str();
}
Expand Down Expand Up @@ -167,20 +159,32 @@ class FileStatus {
return fileEncryption.getKey().length() > 0 && fileEncryption.getKeyName().length() > 0;
}

/**
* Get FileID of hdfs file/directory
* @return fileid of file if present, else 0
*/
int64_t getFileid() const {
return fileid;
}

void setFileid(int64_t fileid) {
this->fileid = fileid;
}

private:
bool isdir;
int64_t atime;
int64_t blocksize;
int64_t length;
int64_t mtime;
int64_t fileid;
Permission permission;
short replications;
std::string group;
std::string owner;
std::string path;
std::string symlink;
FileEncryptionInfo fileEncryption;
int64_t fileid;
};

}
Expand Down

0 comments on commit 1b79578

Please sign in to comment.