Files
meta-openembedded/meta-oe/recipes-dbs/rocksdb/files/0005-Implement-timer-implementation-for-mips-platform.patch
Andrej Kozemcak 6d6c0b99d3 rocksdb: upgrade 9.10.0 -> 10.10.1
Remove not exist PACKAGECONFIG option `lite`
Add new PACKAGECONFIG option liburing

Changelog:

v10.10.1
  https://github.com/facebook/rocksdb/releases/tag/v10.10.1

  Bugs:
    - Fixed a bug in best-efforts recovery that causes use-after-free crashes when accessing SST files that were cached during the recovery.
    - Fix resumable compaction incorrectly allowing resumption from a truncated range deletion that is not well handled currently.
    - Fixed a bug in PosixRandomFileAccess IO uring submission queue ownership & management. Fix eliminates the false positive 'Bad cqe data' IO errors in PosixRandomFileAccess::MultiRead when interleaved with PosixRandomFileAccess::ReadAsync on the same thread.
    - Fix Windows VS 2022 build errors.

v10.9.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.9.1

v10.8.3:
  https://github.com/facebook/rocksdb/releases/tag/v10.8.3

v10.7.5:
  https://github.com/facebook/rocksdb/releases/tag/v10.7.5

v10.6.2:
  https://github.com/facebook/rocksdb/releases/tag/v10.6.2

v10.5.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.5.1

v10.4.2:
  https://github.com/facebook/rocksdb/releases/tag/v10.4.2

v10.2.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.2.1

v10.1.3:
  https://github.com/facebook/rocksdb/releases/tag/v10.1.3

v10.0.1:
  https://github.com/facebook/rocksdb/releases/tag/v10.0.1

Signed-off-by: Andrej Kozemcak <andrej.kozemcak@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-17 22:02:53 -07:00

33 lines
1.2 KiB
Diff

From 2ebc0ff33e41d23e4d3aec1a86f3d8bd4be410e7 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 21 Mar 2024 14:14:58 +0800
Subject: [PATCH] Implement timer implementation for mips platform
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../lock/range/range_tree/lib/portability/toku_time.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
index 0a7488c397..ad7d9f2124 100644
--- a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
+++ b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
@@ -158,6 +158,12 @@ static inline tokutime_t toku_time_now(void) {
unsigned long result;
asm volatile("rdtime.d\t%0,$r0" : "=r"(result));
return result;
+#elif defined(__mips__)
+ // mips apparently only allows rdtsc for superusers, so we fall
+ // back to gettimeofday. It's possible clock_gettime would be better.
+ struct timeval tv;
+ gettimeofday(&tv, nullptr);
+ return (uint64_t)tv.tv_sec * 1000000 + tv.tv_usec;
#else
#error No timer implementation for this platform
#endif
--
2.25.1