-
Notifications
You must be signed in to change notification settings - Fork 389
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
File permission transfer #155
Changes from 14 commits
d08d3e9
8e671b7
b85b559
93e61d3
90dafff
b6def07
93ed192
eed6c64
37ddca5
5b1af9b
6a9dae2
e3c2c6a
7bb17e3
0125fe6
b57a4fc
caf98ff
ae240d9
3f889bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,13 @@ | |
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
#include <wdt/ReceiverThread.h> | ||
#include <folly/Bits.h> | ||
#include <folly/Checksum.h> | ||
#include <folly/Conv.h> | ||
#include <folly/Memory.h> | ||
#include <folly/ScopeGuard.h> | ||
#include <folly/String.h> | ||
#include <wdt/ReceiverThread.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert this one too. "The associated header file of .cpp files should be included before any other includes. (This helps catch missing header file dependencies in the .h)" This is the lint error I'm seeing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah... this is what clang gave me... Let me revert it... |
||
#include <wdt/util/FileWriter.h> | ||
|
||
namespace facebook { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
#include <wdt/Reporting.h> | ||
#include <folly/String.h> | ||
#include <wdt/Protocol.h> | ||
#include <wdt/Reporting.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one too |
||
#include <wdt/WdtOptions.h> | ||
|
||
#include <algorithm> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,14 @@ | |
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
#include <wdt/SenderThread.h> | ||
#include <folly/Bits.h> | ||
#include <folly/Checksum.h> | ||
#include <folly/Conv.h> | ||
#include <folly/Memory.h> | ||
#include <folly/String.h> | ||
#include <sys/stat.h> | ||
#include <wdt/Sender.h> | ||
#include <wdt/SenderThread.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. another one |
||
#include <wdt/util/ClientSocket.h> | ||
|
||
namespace facebook { | ||
|
@@ -324,6 +324,7 @@ TransferStats SenderThread::sendOneByteSource( | |
blockDetails.dataSize = expectedSize; | ||
blockDetails.allocationStatus = metadata.allocationStatus; | ||
blockDetails.prevSeqId = metadata.prevSeqId; | ||
blockDetails.permission = metadata.permission; | ||
Protocol::encodeHeader(wdtParent_->getProtocolVersion(), headerBuf, off, | ||
Protocol::kMaxHeader, blockDetails); | ||
int16_t littleEndianOff = folly::Endian::little((int16_t)off); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
#include <wdt/Throttler.h> | ||
#include <wdt/ErrorCodes.h> | ||
#include <wdt/Throttler.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one too |
||
#include <wdt/WdtOptions.h> | ||
|
||
namespace facebook { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
#include <wdt/WdtOptions.h> | ||
#include <glog/logging.h> | ||
#include <wdt/WdtOptions.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. another |
||
|
||
namespace facebook { | ||
namespace wdt { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
#include <wdt/WdtTransferRequest.h> | ||
#include <folly/Conv.h> | ||
#include <folly/Range.h> | ||
#include <wdt/WdtTransferRequest.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one too |
||
#include <ctime> | ||
|
||
using namespace std; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert this change?