Skip to content

Commit

Permalink
add print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Jun 10, 2024
1 parent 5b2b0cf commit dcd669c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/src/arrow/io/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <unistd.h> // IWYU pragma: keep
#endif

#include <iostream>

#include <algorithm>
#include <atomic>
#include <cerrno>
Expand Down Expand Up @@ -751,7 +753,9 @@ Status MemoryMappedFile::WriteAt(int64_t position, const void* data, int64_t nby

Status MemoryMappedFile::Write(const void* data, int64_t nbytes) {
RETURN_NOT_OK(memory_map_->CheckClosed());
std::cout << "Get lock" << std::endl;
std::lock_guard<std::mutex> guard(memory_map_->write_lock());
std::cout << "locked" << std::endl;

if (!memory_map_->opened() || !memory_map_->writable()) {
return Status::IOError("Unable to write");
Expand Down

0 comments on commit dcd669c

Please sign in to comment.