Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions splunklib/searchcommands/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,11 @@ def flush(self, finished=None, partial=None):
RecordWriter.flush(self, finished, partial) # validates arguments and the state of this instance
inspector = self._inspector

if partial:
# Don't flush partial chunks, since the SCP v2 protocol does not
# provide a way to send partial chunks yet.
return

if self._flushed is False:

self._total_record_count += self._record_count
Expand Down
2 changes: 1 addition & 1 deletion splunklib/searchcommands/search_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def flush(self):
:return: :const:`None`

"""
self._record_writer.flush(partial=True)
self._record_writer.flush(finished=False)

def prepare(self):
""" Prepare for execution.
Expand Down