]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix huge (>4GB) bluefs reads 39701/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 8 Apr 2020 21:06:14 +0000 (00:06 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Thu, 25 Feb 2021 15:57:19 +0000 (18:57 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit fe558c4dd12b25b2d523987f22fde5b5898cfb83)

 Conflicts:
(still present buf param in BlueFS::read, lack of )https://github.com/ceph/ceph/pull/34421)
src/os/bluestore/BlueFS.h
src/os/bluestore/BlueRocksEnv.cc
src/test/objectstore/test_bluefs.cc

src/test/objectstore/test_bluefs.cc

index 5f1dd140256ae5dc02f3c4e2e52997cb499fccdc..68db26f77f5f71d9cb71db20440dc46b940f64f7 100644 (file)
@@ -304,7 +304,7 @@ TEST(BlueFS, very_large_write) {
     unique_ptr<char> huge_buf(new char[h->file->fnode.size]);
     auto l = h->file->fnode.size;
     int64_t r = fs.read(h, &readbuf, 0, l, NULL, huge_buf.get());
-    ASSERT_EQ(r, l);
+    ASSERT_EQ(r, (int64_t)l);
     delete h;
   }
   fs.umount();