From: Howard Chu Date: Fri, 22 Aug 2014 00:40:20 +0000 (-0700) Subject: More for MIPS X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~36^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8fbbc71506f5992579fb38398e4654007a1cf4b5;p=openldap More for MIPS Move CACHEFLUSH, avoid unnecessary if() --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 74d3678c45..c87886da07 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3603,11 +3603,9 @@ fail: env->me_flags |= MDB_FATAL_ERROR; return rc; } -done: /* MIPS has cache coherency issues, this is a no-op everywhere else */ - if (!(env->me_flags & MDB_WRITEMAP)) { - CACHEFLUSH(env->me_map + off, len, DCACHE); - } + CACHEFLUSH(env->me_map + off, len, DCACHE); +done: /* Memory ordering issues are irrelevant; since the entire writer * is wrapped by wmutex, all of these changes will become visible * after the wmutex is unlocked. Since the DB is multi-version,