IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2009, 2:12:49 PM (17 years ago)
Author:
jhoblitt
Message:

add key's processed counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/scripts/dirize.pl

    r23949 r23951  
    2525my $query = $db->prepare_cached("SELECT * FROM storage_object AS so WHERE so.dir_id = 0 LIMIT 1000");
    2626
     27my $i = 0;
    2728while ($query->execute and $query->rows) {
    2829    print "foo\n";
    2930    while (my $row = $query->fetchrow_hashref) {
     31        $i++;
    3032        my $key = parse_neb_key($row->{'ext_id'});
    3133        my $parent_id = $neb->_resolve_dir_parent_id(key => $key, create => 1);
    3234
    3335#printf("dirizing %20s basename: %20s parent_id %10d\n", $key, basename($row->{'ext_id'}), $parent_id);
    34         printf("dirizing %s\n", $key->path);
     36        printf("$i dirizing %s\n", $key->path);
    3537
    3638        my $q = $db->prepare_cached("UPDATE storage_object SET ext_id_basename = ?, dir_id = ? WHERE so_id = ?");
Note: See TracChangeset for help on using the changeset viewer.