- lib: treat MINGW32 like CYGWIN32 (in 1 place - should do everywhere?)

from Oliver


svn path=/trunk/boinc/; revision=25874
This commit is contained in:
David Anderson 2012-07-17 03:59:12 +00:00
parent 0335c357ab
commit 9a84980792
6 changed files with 32 additions and 11 deletions

View File

@ -4942,3 +4942,18 @@ David 13 July 2012
html/inc/
result.inc
David 16 July 2012
- lib: treat MINGW32 like CYGWIN32 (in 1 place - should do everywhere?)
from Oliver
lib/
filesys.cpp
db/
schema_vda.sql
sched/
Makefile.am
html/ops/
manage_apps.php
vda/
sched_vda.cpp

View File

@ -11,7 +11,7 @@ create table vda_file (
primary key(id)
) engine = InnoDB;
alter table vda_file add unique(name);
alter table vda_file add unique(file_name);
create table vda_chunk_host (
create_time double not null default 0,
@ -25,9 +25,6 @@ create table vda_chunk_host (
transfer_send_time double not null default 0
) engine = InnoDB;
alter table vda_file
add index vf_name (file_name);
alter table vda_chunk_host
add index vch_file (vda_file_id),
add index vch_host (host_id);

View File

@ -116,9 +116,9 @@ function show_form($updated) {
"ID",
"Name and description<br><span class=note>Click for details</span>",
"Created",
"weight<br><a href=http://boinc.berkeley.edu/trac/wiki/BackendPrograms#feeder>details</a>",
"homogeneous redundancy type<br><a href=http://boinc.berkeley.edu/trac/wiki/HomogeneousRedundancy>details</a>",
"homogeneous app version?<br><a href=http://boinc.berkeley.edu/trac/wiki/HomogeneousAppVersion>details</a>",
"weight<br><a href=http://boinc.berkeley.edu/trac/wiki/BackendPrograms#feeder><span class=note>details</span></a>",
"homogeneous redundancy type<br><a href=http://boinc.berkeley.edu/trac/wiki/HomogeneousRedundancy><span class=note>details</span></a>",
"homogeneous app version?<br><a href=http://boinc.berkeley.edu/trac/wiki/HomogeneousAppVersion><span class=note>details</span></a>",
"deprecated?"
);

View File

@ -326,7 +326,7 @@ int boinc_delete_file(const char* path) {
int file_size(const char* path, double& size) {
int retval;
#if defined(_WIN32) && !defined(__CYGWIN32__)
#if defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__MINGW32__)
struct __stat64 sbuf;
retval = _stat64(path, &sbuf);
#else

View File

@ -19,8 +19,7 @@ libsched_sources = \
../db/db_base.cpp \
../tools/process_result_template.cpp \
../tools/process_input_template.cpp \
../tools/backend_lib.cpp \
../vda/sched_vda.cpp
../tools/backend_lib.cpp
lib_LTLIBRARIES = libsched.la
libsched_la_SOURCES = $(libsched_sources)
@ -161,6 +160,7 @@ cgi_sources = \
sched_score.cpp \
sched_send.cpp \
sched_timezone.cpp \
../vda/sched_vda.cpp \
sched_version.cpp \
sched_types.cpp \
time_stats_log.cpp

View File

@ -261,7 +261,16 @@ static int process_missing_chunks(CHUNK_LIST& chunks) {
"[vda] in DB but not on client: %s\n", ch.chunk_name
);
}
ch.delete_from_db();
char buf[256];
sprintf(buf, "host_id=%d and vda_file_id=%d and chunk_name='%s'",
ch.host_id, ch.vda_file_id, ch.chunk_name
);
int retval = ch.delete_from_db_multi(buf);
if (retval) {
log_messages.printf(MSG_CRITICAL,
"VDA: failed to delete %s\n", buf
);
}
ch.transfer_in_progress = false;
mark_for_update(ch.vda_file_id);
}