summaryrefslogtreecommitdiff
path: root/src/os/WBThrottle.cc
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-05-29 15:05:34 -0700
committerSamuel Just <sam.just@inktank.com>2013-05-29 15:05:34 -0700
commit4b31c7e7929bffa530ded0a695c25f8c1b0f7774 (patch)
treed568eda353c1291a55009d8d733a8858b91e6572 /src/os/WBThrottle.cc
parent1c35556b56dd531b584558e44eff3ea5e650cc30 (diff)
downloadceph-4b31c7e7929bffa530ded0a695c25f8c1b0f7774.tar.gz
WBThrottle: rename replica nocache
We may want to influence the caching behavior for other reasons. Signed-off-by: Samuel Just <sam.just@inktank.com>
Diffstat (limited to 'src/os/WBThrottle.cc')
-rw-r--r--src/os/WBThrottle.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/WBThrottle.cc b/src/os/WBThrottle.cc
index 12186445bc1..23e24765cc2 100644
--- a/src/os/WBThrottle.cc
+++ b/src/os/WBThrottle.cc
@@ -146,7 +146,7 @@ void *WBThrottle::entry()
clearing = wb.get<0>();
lock.Unlock();
::fsync(**wb.get<1>());
- if (wb.get<2>().replica)
+ if (wb.get<2>().nocache)
posix_fadvise(**wb.get<1>(), 0, 0, POSIX_FADV_DONTNEED);
lock.Lock();
clearing = hobject_t();
@@ -163,7 +163,7 @@ void *WBThrottle::entry()
void WBThrottle::queue_wb(
FDRef fd, const hobject_t &hoid, uint64_t offset, uint64_t len,
- bool replica)
+ bool nocache)
{
Mutex::Locker l(lock);
map<hobject_t, pair<PendingWB, FDRef> >::iterator wbiter =
@@ -184,7 +184,7 @@ void WBThrottle::queue_wb(
cur_size += len;
logger->inc(l_wbthrottle_bytes_dirtied, len);
- wbiter->second.first.add(replica, len, 1);
+ wbiter->second.first.add(nocache, len, 1);
insert_object(hoid);
cond.Signal();
}