Skip to content

Commit 945fcbe

Browse files
archang19facebook-github-bot
authored andcommitted
Add cost info field to IODebugContext (#13666)
Summary: This field will be used internally to feed Warm Storage cost information back through the Sally IO stack. This is needed for cost accounting / reporting. Pull Request resolved: #13666 Test Plan: I made the additional changes needed to set/record the new cost info field, and confirmed that this information could be fed through. Reviewed By: anand1976 Differential Revision: D76070434 Pulled By: archang19 fbshipit-source-id: 2fab975f14fd8f7c20b5d0d85c31686ccf682068
1 parent 02bce9b commit 945fcbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/rocksdb/file_system.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include <stdint.h>
2020

21+
#include <any>
2122
#include <chrono>
2223
#include <cstdarg>
2324
#include <functional>
@@ -250,6 +251,9 @@ struct IODebugContext {
250251
};
251252
uint64_t trace_data = 0;
252253

254+
// Arbitrary structure containing cost information about the IO request
255+
std::any cost_info;
256+
253257
IODebugContext() {}
254258

255259
void AddCounter(std::string& name, uint64_t value) {

0 commit comments

Comments
 (0)