From dcd669c4ab196c6d0961382cee44484cff6c888e Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Mon, 10 Jun 2024 14:23:50 -0400 Subject: [PATCH] add print statement --- cpp/src/arrow/io/file.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/src/arrow/io/file.cc b/cpp/src/arrow/io/file.cc index a22accf65660a..a0a9d619e4bb6 100644 --- a/cpp/src/arrow/io/file.cc +++ b/cpp/src/arrow/io/file.cc @@ -31,6 +31,8 @@ #include // IWYU pragma: keep #endif +#include + #include #include #include @@ -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 guard(memory_map_->write_lock()); + std::cout << "locked" << std::endl; if (!memory_map_->opened() || !memory_map_->writable()) { return Status::IOError("Unable to write");