summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sinksh/syntax_modules/sink_inspect.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp
index a8a3805..848d576 100644
--- a/sinksh/syntax_modules/sink_inspect.cpp
+++ b/sinksh/syntax_modules/sink_inspect.cpp
@@ -19,8 +19,6 @@
19 19
20#include <QDebug> 20#include <QDebug>
21#include <QObject> // tr() 21#include <QObject> // tr()
22#include <QTimer>
23#include <QDir>
24 22
25#include "common/resource.h" 23#include "common/resource.h"
26#include "common/storage.h" 24#include "common/storage.h"
@@ -30,6 +28,7 @@
30#include "common/definitions.h" 28#include "common/definitions.h"
31#include "common/entitybuffer.h" 29#include "common/entitybuffer.h"
32#include "common/metadata_generated.h" 30#include "common/metadata_generated.h"
31#include "common/bufferutils.h"
33 32
34#include "sinksh_utils.h" 33#include "sinksh_utils.h"
35#include "state.h" 34#include "state.h"
@@ -96,7 +95,10 @@ bool inspect(const QStringList &args, State &state)
96 state.printError("Read invalid buffer from disk: " + key); 95 state.printError("Read invalid buffer from disk: " + key);
97 } else { 96 } else {
98 const auto metadata = flatbuffers::GetRoot<Sink::Metadata>(buffer.metadataBuffer()); 97 const auto metadata = flatbuffers::GetRoot<Sink::Metadata>(buffer.metadataBuffer());
99 state.printLine("Key: " + key + " Operation: " + QString::number(metadata->operation())); 98 state.printLine("Key: " + key
99 + " Operation: " + QString::number(metadata->operation())
100 + " Replay: " + (metadata->replayToSource() ? "true" : "false")
101 + ((metadata->modifiedProperties() && metadata->modifiedProperties()->size() != 0) ? (" Changeset: " + Sink::BufferUtils::fromVector(*metadata->modifiedProperties()).join(",")) : ""));
100 } 102 }
101 } else { 103 } else {
102 state.printLine("Key: " + key + " Value: " + QString::fromUtf8(data)); 104 state.printLine("Key: " + key + " Value: " + QString::fromUtf8(data));