perl-docs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Moseley <mose...@hank.org>
Subject Re: Cron <perlwww@daedalus> /home/perlwww/apache.org/modperl-docs/bin/site_build_index
Date Mon, 24 Feb 2003 15:05:26 GMT
On 24 Feb 2003, Cron Daemon wrote:

> err: Couldn't open the property file "index.swish-e.prop.temp": No
> such file or directory .

I wonder why this is reported every once in a while.  Swish is reopening
that .prop file in read mode for faster access on the last pass of
indexing.

But, that error should abort the indexing, yet the index looks like it was
created.

-rw-rw-r--  1 perlwww  perl  1441405 Feb 24 06:43 index.swish-e.prop
-rw-rw-r--  1 perlwww  perl  4777362 Feb 24 06:43 index.swish-e

When swish indexes it writes to .temp files, then at the very end renames
the files removing the .temp suffix.


void    DB_Reopen_PropertiesForRead_Native(void *db)
{
    struct Handle_DBNative *DB = (struct Handle_DBNative *) db;
    int     no_rename = 0;
    char   *s = estrdup(DB->cur_prop_file);

    /* Close property file */
    DB_Close_File_Native(&DB->prop, &DB->cur_prop_file, &no_rename);


    if (!(DB->prop = openIndexFILEForRead(s)))
        progerrno("Couldn't open the property file \"%s\": ", s);

    DB->cur_prop_file = s;
}

progerrno() calls exit.


-- 
Bill Moseley moseley@hank.org


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org


Mime
View raw message