X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fztest.c;h=dacf6401c5ab7bef94dddf4d4bc467414bf61fec;hb=021f5586a328c6600460aa9f9be664ba19ba20d4;hp=515d1ac81a308199d71989439c265d5feb6ee080;hpb=09f5ad52b5ae914f6b8f5d16afcb14e6fc33ea45;p=yaz-moved-to-github.git diff --git a/ztest/ztest.c b/ztest/ztest.c index 515d1ac..dacf640 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: ztest.c,v 1.82 2006-12-04 14:56:55 adam Exp $ + * $Id: ztest.c,v 1.85 2007-01-16 14:12:38 adam Exp $ */ /* @@ -66,7 +66,7 @@ int ztest_search(void *handle, bend_search_rr *rr) sleep(1); } #endif - ; + rr->estimated_hit_count = 1; } else { @@ -673,6 +673,12 @@ int ztest_explain(void *handle, bend_explain_rr *rr) return 0; } +int ztest_update(void *handle, bend_update_rr *rr) +{ + rr->operation_status = "success"; + return 0; +} + bend_initresult *bend_init(bend_initrequest *q) { bend_initresult *r = (bend_initresult *) @@ -700,6 +706,7 @@ bend_initresult *bend_init(bend_initrequest *q) q->bend_explain = ztest_explain; #endif q->bend_srw_scan = ztest_scan; + q->bend_srw_update = ztest_update; return r; }