https://github.com/baidu/bfs/blob/master/src/client/bfs_clie... std::string pad; if (path[path.size() - 1] != '/') { pad = "/"; } Else?
The value constructor for strings is the empty string.
Baidu File System – A distributed file system for real-time applications
21–30 of 169 posts
Re: Baidu File System – A distributed file system for real-time applications
#22What wonders me the most, is when they change titles. 1 chinese character sometimes matches 1 english word Eg. lylei changed the title from "cs启动太慢" to "cs start is too slow " ( on https://github.com/baidu/bfs/issues/376 ) lylei changed the title from "其他SDK写策略" to "SDK writing strategies(fan-out write for example)" (on https://github.com/baidu/bfs/issues/243 )
Re: Baidu File System – A distributed file system for real-time applications
#23I feel like we should just make up random strings when we name things...
Re: Baidu File System – A distributed file system for real-time applications
#24https://github.com/baidu/bfs/blob/master/src/client/bfs_clie... std::string pad; if (path[path.size() - 1] != '/') { pad = "/"; } Else?
Re: Baidu File System – A distributed file system for real-time applications
#25Earlier quoted context omitted.
The value constructor for strings is the empty string.
I imagined that. I am more like "let me tell you exactly what I want" rather than relying on behavior defined elsewhere. It would not pass review where I work.
How would that be consistent with your own classes? "Oh no, you can't just use a 'Tree' object, you need to explicitly set that there are no leaves yet, no branches yet, no squirrels yet, etc… etc…"
Do you .clear() your vectors before you use them?
This sounds like newbies that do: #define TRUE (1 == 1)
Re: Baidu File System – A distributed file system for real-time applications
#26Earlier quoted context omitted.
The value constructor for strings is the empty string.
I imagined that. I am more like "let me tell you exactly what I want" rather than relying on behavior defined elsewhere. It would not pass review where I work.
Re: Baidu File System – A distributed file system for real-time applications
#27Anybody know how this differs from AFS?
Re: Baidu File System – A distributed file system for real-time applications
#28Too bad that the documentation is so poor... Having PRs in Chinese is not ideal either.
Re: Baidu File System – A distributed file system for real-time applications
#29awesome
Care to explain the awesomeness you found?
Re: Baidu File System – A distributed file system for real-time applications
#30More like a C++ clone of HDFS than most people are likely hoping. While you seem to be able to mount it with FUSE I imagine it's primarily meant to be programmed against directly. Using Raft over a dependency on an external consensus system is nice. Definitely makes the namenode architecture much better.