Exemple #1
0
        public void Handle(ClientMessage.MergeIndexes message)
        {
            if (_tableIndex.IsBackgroundTaskRunning)
            {
                Log.Information("A background operation is already running...");
                MakeReplyForMergeIndexes(message);
                return;
            }

            _tableIndex.MergeIndexes();
            MakeReplyForMergeIndexes(message);
        }
Exemple #2
0
 private static void MakeReplyForMergeIndexes(ClientMessage.MergeIndexes message)
 {
     message.Envelope.ReplyWith(new ClientMessage.MergeIndexesResponse(message.CorrelationId,
                                                                       ClientMessage.MergeIndexesResponse.MergeIndexesResult.Started));
 }