pike.git / lib / modules / Sql.pmod / pgsql_util.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1505:    final void cancelquery() {    if (cancelsecret > "") {    PD("CancelRequest\n");    conxion lcon = conxion(this, 0, 2);   #ifdef PG_DEBUG    mixed err =   #endif    catch(lcon->add_int32(16)->add_int32(PG_PROTOCOL(1234, 5678))    ->add_int32(backendpid)->add(cancelsecret)->sendcmd(FLUSHSEND));   #ifdef PG_DEBUG -  int close() { -  werror("SRB fd close %d %s\n", query_fd(), -  query_fd() == 13 && describe_backtrace(backtrace()) || ""); -  return ::close(); -  } -  void _destruct() { -  werror("SRB fd destruct %d\n", query_fd()); -  ::_destruct(); -  } +     if (err)    PD("CancelRequest failed to connect %O\n", describe_backtrace(err));   #endif    destruct(lcon); // Destruct explicitly to avoid delayed close   #ifdef PG_DEBUGMORE    PD("Closetrace %O\n", backtrace());   #endif    } else    error("Connection not established, cannot cancel any query\n");    }