Skip to content
Snippets Groups Projects
Commit 72dd02cd authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix file monitor

parent aa48bc2d
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ int main (int argc, char* argv[]) {
uint64_t i = 0;
while (true) {
asapo::MessageHeader message_header;
auto err = event_detector->GetNextEvent(&message_header);
err = event_detector->GetNextEvent(&message_header);
if (stop_signal) {
break; // we check it here because signal can interrupt system call (ready by inotify and result in incomplete event data)
}
......@@ -136,7 +136,8 @@ int main (int argc, char* argv[]) {
}
continue;
}
message_header.message_id = i++;
i = i + 1;
message_header.message_id = i;
HandleDatasets(&message_header);
producer->SendFile(message_header, GetEventMonConfig()->root_monitored_folder + asapo::kPathSeparator +
message_header.file_name, asapo::kDefaultIngestMode, "default", ProcessAfterSend);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment