Permalink
Browse files

MB-7467 Reset task start time after being interrupted

So that there's no re-attempt to terminate an idle isolate
if the same mapreduce context is not re-used within the
next termination period.

Change-Id: Ia9f2a3b3e17cb8abdc055913192ae450a21fd881
Reviewed-on: http://review.couchbase.org/24953
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
  • Loading branch information...
1 parent 8a3a359 commit 1821deebb31e99acec6b5f8d9bc5e7920ae51843 @fdmanana fdmanana committed with fdmanana Mar 1, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/mapreduce/mapreduce.cc
@@ -563,6 +563,7 @@ void taskFinished(map_reduce_ctx_t *ctx)
void terminateTask(map_reduce_ctx_t *ctx)
{
V8::TerminateExecution(ctx->isolate);
+ taskFinished(ctx);
}

0 comments on commit 1821dee

Please sign in to comment.