diff options
| author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2012-03-20 12:20:55 +1100 |
|---|---|---|
| committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2012-03-20 12:26:22 +1100 |
| commit | e7e51ddb64cb362d3417eaae7c8d7fd5a5c4ea4d (patch) | |
| tree | c65e45786149b97f06f152a286b613db7eb628da /ctdb/common | |
| parent | 6a493a0b08a8751ee9265047152851e00b9bf443 (diff) | |
LACOUNT: Add back lacount mechanism to defer migrating a fetched/read copy until after default of 20 consecutive requests from the same node
This can improve performance slightly on certain workloads where smbds frequently read from the same record
(This used to be ctdb commit 035c0d981bde8c0eee8b3f24ba8e2dc817e5b504)
Diffstat (limited to 'ctdb/common')
| -rw-r--r-- | ctdb/common/ctdb_ltdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/common/ctdb_ltdb.c b/ctdb/common/ctdb_ltdb.c index 565a89986b..3a184bb28c 100644 --- a/ctdb/common/ctdb_ltdb.c +++ b/ctdb/common/ctdb_ltdb.c @@ -67,6 +67,7 @@ static void ltdb_initial_header(struct ctdb_db_context *ctdb_db, /* initial dmaster is the lmaster */ header->dmaster = ctdb_lmaster(ctdb_db->ctdb, &key); header->flags = CTDB_REC_FLAG_AUTOMATIC; + header->laccessor = header->dmaster; } |
