Skip to content

Commit 3c69ada

Browse files
committed
fix format check
1 parent 6bfebc2 commit 3c69ada

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

cpp/src/plasma/client.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,6 @@ Status PlasmaClient::Impl::Subscribe(int* fd) {
872872
return Status::OK();
873873
}
874874

875-
876875
Status PlasmaClient::Impl::GetNotification(int fd, ObjectID* object_id,
877876
int64_t* data_size, int64_t* metadata_size) {
878877
auto notification = read_message_async(fd);

cpp/src/plasma/io.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#include "plasma/io.h"
1919

2020
#include <cstdint>
21-
#include <sstream>
2221
#include <memory>
22+
#include <sstream>
2323

2424
#include "arrow/status.h"
2525

@@ -220,7 +220,7 @@ std::unique_ptr<uint8_t[]> read_message_async(int sock) {
220220
close(sock);
221221
return NULL;
222222
}
223-
auto message = std::unique_ptr<uint8_t[]> (new uint8_t[size]);
223+
auto message = std::unique_ptr<uint8_t[]>(new uint8_t[size]);
224224
s = ReadBytes(sock, message.get(), size);
225225
if (!s.ok()) {
226226
/* The other side has closed the socket. */

cpp/src/plasma/io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <sys/un.h>
2424
#include <unistd.h>
2525

26+
#include <memory>
2627
#include <string>
2728
#include <vector>
28-
#include <memory>
2929

3030
#include "arrow/status.h"
3131
#include "plasma/compat.h"

cpp/src/plasma/plasma.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ std::unique_ptr<uint8_t[]> create_object_info_buffer(ObjectInfoT* object_info) {
5555
flatbuffers::FlatBufferBuilder fbb;
5656
auto message = CreateObjectInfo(fbb, object_info);
5757
fbb.Finish(message);
58-
auto notification = std::unique_ptr<uint8_t[]>(
59-
new uint8_t[sizeof(int64_t) + fbb.GetSize()]);
58+
auto notification =
59+
std::unique_ptr<uint8_t[]>(new uint8_t[sizeof(int64_t) + fbb.GetSize()]);
6060
*(reinterpret_cast<int64_t*>(notification.get())) = fbb.GetSize();
6161
memcpy(notification.get() + sizeof(int64_t), fbb.GetBufferPointer(), fbb.GetSize());
6262
return notification;

cpp/src/plasma/store.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ PlasmaStore::PlasmaStore(EventLoop* loop, int64_t system_memory, std::string dir
118118
}
119119

120120
// TODO(pcm): Get rid of this destructor by using RAII to clean up data.
121-
PlasmaStore::~PlasmaStore() {
122-
}
121+
PlasmaStore::~PlasmaStore() {}
123122

124123
const PlasmaStoreInfo* PlasmaStore::get_plasma_store_info() { return &store_info_; }
125124

0 commit comments

Comments
 (0)