[prev in list] [next in list] [prev in thread] [next in thread] 

List:       intermezzo-cvs
Subject:    CVS: intermezzo/presto24 journal.c,1.26,1.27
From:       Phil Schwan <pschwan () users ! sourceforge ! net>
Date:       2001-10-16 17:11:10
[Download RAW message or body]

Update of /cvsroot/intermezzo/intermezzo/presto24
In directory usw-pr-cvs1:/tmp/cvs-serv6183/presto24

Modified Files:
	journal.c 
Log Message:
I want to know why there are _any_ cvs error paths that don't leave the commit
message in the temp file.  I'd also like to know why our masquerading timeout
is so short.

Summary:
- Extended the last_rcvd record to include a 16-byte UUID and a 32-bit ctime
- Removed the replicator.db
- Extended the SysId RPC to include a UUID and protocol version
- Updated the tests to provide those UUIDs in the config files

Capital letters mean important:
IF YOU UPGRADE ANY NODES IN YOUR CLUSTER TO CVS HEAD, YOU MUST UPGRADE THEM 
ALL.  ZERO BACKWARDS COMPATIBILITY.  OTHERWISE IT WILL FAIL ON STARTUP AND YOUR
HOUSE WILL CATCH ON FIRE.

- presto24/journal.c: added some missing EXITs; we don't write the last
  backfetched ctime here, but added some comments so that future last_rcvd
  revisions don't forget about it

- lento: added the first $::PROTOCOL_VERSION

- Lento/Bootstrap.pm: check for the now-mandatory UUID in the SysId file
- Lento/Client.pm: UUID-related functions
- Lento/Fileset.pm: added tiny bits of kernel_reint and kml_truncate
infrastructure; updated the Client call
- Lento/Fsetdb.pm: more kernel_reint/kml_trunc flag goop
- Lento/KML.pm: s/%d/%s/ fixups for quads
- Lento/Replicator.pm: removed all traces of the replicatordb; added UUID and
last_backfetched_ctime to the last_rcvd structure
- Lento/Server.pm: added UUID and PROTOCOL_VERSION to the SysId packet
- Lento/InterMezzo/ReqHandler.pm: SysId handler stuff; explode if we get an old
SysId packet, or one with an unregonized protocol version
- tests/common.sh: added UUID to sysid_add, client_add, and server_add functions
- tests/iface_setup.sh: create faux UUIDs for server and clients


Index: journal.c
===================================================================
RCS file: /cvsroot/intermezzo/intermezzo/presto24/journal.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -U2 -r1.26 -r1.27
--- journal.c	2001/10/10 21:26:03	1.26
+++ journal.c	2001/10/16 17:11:07	1.27
@@ -446,4 +446,5 @@
         }
         set_fs(old_fs);
+        EXIT;
         return rc;
 }
@@ -475,5 +476,4 @@
 }
 
-
 static int presto_kml_dispatch(struct presto_file_set *fset)
 {
@@ -481,5 +481,5 @@
         unsigned int kml_recno;
         struct presto_log_fd *fd = &fset->fset_kml;
-        loff_t  offset;
+        loff_t offset;
         ENTRY;
 
@@ -762,4 +762,5 @@
                 fset->fset_kml.fd_file = NULL;
                 filp_close(f, NULL);
+                EXIT;
                 goto out_free;
         }
@@ -774,4 +775,5 @@
         }
 
+        EXIT;
  out_free:
         PRESTO_FREE(path, path_len + 1);
@@ -871,5 +873,5 @@
 }
 
-/* Write the last_rcvd values to the last)_rcvd file */
+/* Write the last_rcvd values to the last_rcvd file */
 int presto_write_last_rcvd(struct rec_info *recinfo,
                            struct presto_file_set *fset,
@@ -883,4 +885,5 @@
                 __u32 local_recno;
                 __u64 local_offset;
+                /* __u32 last_backfetched_ctime; */
         } rcvd_rec;
 
@@ -889,4 +892,5 @@
         rcvd_rec.local_recno = cpu_to_le32(recinfo->recno);
         rcvd_rec.local_offset = cpu_to_le64(recinfo->offset + recinfo->size);
+        /* Don't overwrite the last_backfetched_ctime */
 
         ret = presto_fwrite(fset->fset_last_rcvd, (char *)(&rcvd_rec),


_______________________________________________
intermezzo-commit mailing list
intermezzo-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/intermezzo-commit

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic