MCPcopy Create free account
hub / github.com/apache/impala / Write

Method Write

be/src/runtime/io/data-cache-trace.cc:174–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 void Write(bool force_flush,
175 time_t timestamp,
176 const char* message,
177 size_t message_len) override {
178 string message_str(message, message_len);
179 Status status = logger_.AppendEntry(message_str);
180 if (!status.ok()) {
181 LOG_EVERY_N(WARNING, 1000) << "Could not write to data cache access trace ("
182 << google::COUNTER << " attempts failed): " << status.GetDetail();
183 }
184 if (force_flush) Flush();
185 }
186
187 // Flush any buffered messages.
188 // NOTE: declared 'final' to allow safe calls from the destructor.

Callers 1

TraceMethod · 0.45

Calls 3

AppendEntryMethod · 0.80
GetDetailMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected