summaryrefslogtreecommitdiff
path: root/src/os/FileStore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/FileStore.cc')
-rw-r--r--src/os/FileStore.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc
index 5170412183e..52e14a286c0 100644
--- a/src/os/FileStore.cc
+++ b/src/os/FileStore.cc
@@ -3145,7 +3145,7 @@ int FileStore::_do_clone_range(int from, int to, uint64_t srcoff, uint64_t len,
if (err >= 0) {
r += err;
} else {
- return -errno;
+ return err;
}
}
@@ -3158,7 +3158,7 @@ int FileStore::_do_clone_range(int from, int to, uint64_t srcoff, uint64_t len,
if (err >= 0) {
r += err;
} else {
- return -errno;
+ return err;
}
}
dout(20) << "_do_clone_range finished " << srcoff << "~" << len