anchor.diff:              imem_meta:log_to_db(error,?MODULE,handle_call,[{reason,Reason},{updPlan,UpdatePlan}],"update_cursor_execute error"),
               {error,Reason}
       end,
  -    ?Log("update_cursor_execute result ~p~n", [Reply]),
  +    % ?Log("update_cursor_execute result ~p~n", [Reply]),
       FetchCtx1 = FetchCtx0#fetchCtx{monref=undefined, status=aborted},   %% , metarec=undefined
       {reply, Reply, State#state{fetchCtx=FetchCtx1}};    
   handle_call({filter_and_sort, _IsSec, FilterSpec, SortSpec, Cols0, _SKey}, _From, #state{statement=Stmt}=State) ->
  
positive.code:     end,
      % ?Log("replace_sort result ~p~n", [Reply]),
      {reply, Reply, State};
  handle_call({fetch_close, _IsSec, _SKey}, _From, #state{statement=Stmt,fetchCtx=#fetchCtx{pid=Pid, monref=MonitorRef, status=Status}}=State) ->
      % imem_meta:log_to_db(debug,?MODULE,handle_call,[{from,_From},{status,Status}],"fetch_close"),
      case Status of
          undefined ->    ok;                             % close is ignored
          done ->         ok;                             % normal close after completed fetch
  
negative.code:             ?Log("in unexpected state ~n~p~n", [State]),
              {noreply, State}
      end;
  handle_info({'DOWN', _Ref, process, _Pid, _Reason}, #state{reply=undefined,fetchCtx=FetchCtx0}=State) ->
      % ?Log("received expected exit info for monitored pid ~p ref ~p reason ~p~n", [_Pid, _Ref, _Reason]),
      FetchCtx1 = FetchCtx0#fetchCtx{monref=undefined, status=undefined},   
      {noreply, State#state{fetchCtx=FetchCtx1}}; 
  handle_info({'DOWN', Ref, process, Pid, Reason}, State) ->
      ?Log("received unexpected exit info for monitored pid ~p ref ~p reason ~p~n", [Pid, Ref, Reason]),
      {noreply, State#state{fetchCtx=#fetchCtx{pid=undefined, monref=undefined, status=aborted}}};
  